
import 'package:json_annotation/json_annotation.dart';

@JsonSerializable()
class ApiHost {
    String name;
    String url;
    String env;
    ApiHost({
        required this.env,
        required this.name,
        required this.url
    });

    factory ApiHost.fromJson(Map<String, dynamic> json) {
        return ApiHost(
            env: json['env'] as String,
            name: json['name'] as String,
            url: json['url'] as String
        );
    }
    Map<String, dynamic> toJson() => {
        'name': name,
        'url': url,
        "env": env
    };
}
